import 'package:json_annotation/json_annotation.dart';
import 'Article.dart';

part 'ArticleList.g.dart';

@JsonSerializable(explicitToJson: true)
class ArticleList {
  final int offset;
  final int size;
  final int total;
  final int pageCount;
  final int curPage;
  final bool over;
  final List<Article> datas;

  ArticleList(this.offset, this.size, this.total, this.pageCount, this.curPage,
      this.over, this.datas);

  factory ArticleList.fromJson(Map<String, dynamic> json) =>
      _$ArticleListFromJson(json);

  Map<String, dynamic> toJson() => _$ArticleListToJson(this);
}
